package com.ordos.recruit.module.user.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.wonders.commons.util.serializer.DesensitizedEmptySerializer;
import com.wonders.commons.util.serializer.DesensitizedIdCardSerializer;
import com.wonders.commons.util.serializer.DesensitizedNameSerializer;
import com.wonders.commons.util.serializer.DesensitizedPhoneSerializer;
import lombok.Data;

import java.io.Serializable;
import java.util.Map;

/**
 * sso user
 * @author jin
 */
@Data
public class SysSsoUserDto implements Serializable {
    private static final long serialVersionUID = 42L;

    private String userid;
    @JsonSerialize(using = DesensitizedNameSerializer.class)
    private String username;
    @JsonSerialize(using = DesensitizedIdCardSerializer.class)
    private String cardId;
    @JsonSerialize(using = DesensitizedPhoneSerializer.class)
    private String phoneNumber;
    private String userIsAdmin;

    /**
     * 扩展信息
     */
    private Map<String, String> extendInfo;

    private String version;
    private int expireMinute;
    private long expireFreshTime;

}
